#include "FileSenderWidget.h"
#include <QCloseEvent>
FileSenderWidget::FileSenderWidget(QWidget *parent, Qt::WFlags flags)
	: QWidget(parent, flags)
{
	ui.setupUi(this);
}

FileSenderWidget::~FileSenderWidget()
{

}

void FileSenderWidget::closeEvent(QCloseEvent* aEvent)
{
    aEvent->ignore();;
    QWidget::showMinimized();
}

#include <QMessageBox>
void FileSenderWidget::OnCancelSharing()
{
    if (QMessageBox::information(this , "File Sharing" , this->property("CancelConfirmText").toString() , QMessageBox::Ok , QMessageBox::Cancel) == QMessageBox::Ok)
        emit this->CancelAccepted();
}
